import { speed } from "./index";
// speed
export const gameState = {
  downIntervalTime: speed,
  factor: 0.3,
};

export function upSpeed() {
  gameState.downIntervalTime *= gameState.factor;
  const minVal = 60;
  if (gameState.downIntervalTime < minVal) {
    gameState.downIntervalTime = minVal;
  }
}

export function resetSpeed() {
  gameState.downIntervalTime = speed;
}
